package lang;

import org.apache.commons.lang3.time.StopWatch;

import java.util.concurrent.TimeUnit;

public class StopWatchDemo {

    public static void main(String[] args) throws InterruptedException {

        StopWatch stopWatch = StopWatch.createStarted();
        TimeUnit.SECONDS.sleep(1);
        stopWatch.stop();
        System.out.println(stopWatch.getTime());
    }

}
